package com.oa.oaspcpersonalcenterapi.fallback;



import com.oa.oaspccommon.po.Salary;
import com.oa.oaspcpersonalcenterapi.api.SalaryServiceApi;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;


/**
 * Created by jeffrey on 2021/4/13.
 */
@Component
public class SalaryServiceApiFallback implements SalaryServiceApi {

    @Override
    public List<Salary> findSalarys() {
        List<Salary> all=new ArrayList<>();
        all.add(new Salary(10,10.0,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1,10.1));
        return all;
    }

    @Override
    public  Salary findSalaryByUidAndSid(int uid,double sid) {
        return null;
    }

    @Override
    public boolean addSalary(Salary salary) {
        return false;
    }

    @Override
    public boolean updateSalary(Salary salary) {
        return false;
    }

    @Override
    public boolean deleteSalaryByUidAndSid(int uid,double sid) {
        return false;
    }
}
